package com.example.educationcommunity.controller;

import com.example.educationcommunity.dto.CommentDTO;
import com.example.educationcommunity.dto.PagingDTO;
import com.example.educationcommunity.mapper.CommentMapper;
import com.example.educationcommunity.mapper.UserMapper;
import com.example.educationcommunity.model.Comment;
import com.example.educationcommunity.model.CommentExample;
import com.example.educationcommunity.model.User;
import com.example.educationcommunity.model.UserExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.List;

@Controller
public class AdminManageController {

    @Autowired
    private CommentMapper commentMapper;

    @Autowired
    private UserMapper userMapper;

    @GetMapping("admin/{action}")
    private String adminMange (@PathVariable(name = "action") String action,
                               HttpServletRequest request,
                               Model model){

        return "admin";

    }
}
